import yagmail
import BeautifulReport
import unittest


class Tloss():
    def Mist(self, sendkey):
        sig = yagmail.SMTP(user="3392177122@qq.com", password="ccyayzzvugvychfg", host="smtp.qq.com")
        sig.send(to='3392177122@qq.com', subject="测试", contents="测试", attachments=sendkey)

    def Beau(self):
        situe = unittest.defaultTestLoader.discover(start_dir='./', pattern="Case.py")
        BeautifulReport.BeautifulReport(situe).report(description="测试", filename="测试",
                                                      report_dir='D:\pythonProject\pythonProject\Gwllen\monthor\Run')
